<?php
/**
 * 获取用户私有权限
 * User: Administrator
 * Date: 2018\9\12 0012
 * Time: 15:14
 */

namespace app\Lib\InterfaceIn\AdminAuth\GetAuthorization;


use app\Lib\InterfaceIn\User\UserHandle;

interface GetUserAuthHandle
{
    /**
     * GetUserAuthHandle constructor.
     * @param UserHandle $user
     * @param bool $cache
     */
    public function __construct(UserHandle $user,$cache =true);

    /**
     * 执行
     * @return array
     */
    public function run();

    /**
     * 删除缓存
     * @return bool
     */
    public function delCache();
}